﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Listing1._2
{

    public static class Program

        {

            public static void ThreadMethod()

            {

                for (int i = 0; i < 10; i++)

                {

                    Console.WriteLine("ThreadProc: {0}", i);

                    Thread.Sleep(1000);

                }

            }

            public static void Main()

            {

                Thread t = new Thread(new ThreadStart(ThreadMethod));

                t.IsBackground = true;

                t.Start();

                Console.Read();

            }

        }
}
